package com.neu.questionnaire_system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author xingle
 * @since 2022-10-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
//@Accessors(chain = true)
public class Questionnaire implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 问卷编号
     */
    @TableId(value = "qid", type = IdType.ID_WORKER_STR)
    private String qid;

    /**
     * 创建该问卷的用户id
     */
    private String uid;

    /**
     * 问卷的开启状态
     */
    private String status;

    /**
     * 问卷的开始发放时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date start;

    /**
     * 问卷的结束发放时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date end;

    /**
     * 问卷中包含的题目
     */
    private String question;

    private String type;

    private int answerTime;

    private int answerCount;

    private int answeredCount;

    private String qname;

    private String answerGroup;


    public String getStatus() {
        return status;
    }

    public Date getStart() {
        return start;
    }

    public Date getEnd() {
        return end;
    }

    public int getAnsweredCount() {
        return answeredCount;
    }

    public String getAnswerGroup() {
        return answerGroup;
    }

    public int getAnswerCount() {
        return answerCount;
    }
}
